import $$ from 'cmn-utils'

export async function getCoursewareList (payload) {
  return $$.post('/courseware/list', payload)
}

export async function getCoursewareDetail (payload) {
  return $$.get('/courseware/detail/' + payload)
}

export async function addCourseware (payload) {
  return $$.post('/courseware/add', payload)
}

export async function delCourseware (payload) {
  return $$.del('/courseware/delete/' + payload)
}
